chore(deps-dev): bump typescript from 5.9.3 to 6.0.3 in /back#1174
Open
dependabot[bot] wants to merge 7 commits into
Open
chore(deps-dev): bump typescript from 5.9.3 to 6.0.3 in /back#1174dependabot[bot] wants to merge 7 commits into
dependabot[bot] wants to merge 7 commits into
Conversation
560ef3f to
fedaac4
Compare
fedaac4 to
3d8902c
Compare
Contributor
|
@dependabot rebase |
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.3. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.9.3...v6.0.3) --- updated-dependencies: - dependency-name: typescript dependency-version: 6.0.3 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
3d8902c to
df9cb89
Compare
**Problem** TS6 strict mode flags lying return types in ConfigParser: string() could return undefined but declared `string`, callers masked it with `as string`/`as boolean`/`as number` casts that hid real type unsafety across all config files. **Proposal** Add proper overloads so single-arg calls (`string(path)`, `boolean(path)`, `number(path)`) return the truthful required type and throw on missing/invalid values. Two-arg calls with `undefinedIfEmpty: true` return `string | undefined` for optional config values. Remove lying casts from all core-fca-low config files.
Add ! to readonly DTO properties to satisfy strictPropertyInitialization. Also fix a type narrowing for oidc-provider-config and add @ts-expect-error for jose-v2 import.
Add explicit type annotations for catch error vars (error as Error/any) and implicit any parameters across services, validators, and providers. Replaces anonymous context/object params with typed signatures.
Batch all remaining strict-mode compat fixes across apps and libs: null/undefined type casts, non-null assertions, parameter types, schema property assertions, optional chain narrowing, glob migration.
**Problem**
TS6 6.0 tightens `Object.entries()` on `unknown`, removes the `glob`
global, disallows `symbol` as object index key, and changes overload
resolution for `ejs.renderFile` — 9 type errors blocked the build.
Additionally, lodash `chain()` silently handled `undefined` inputs
but native `.flatMap()` throws, and the null→undefined change
in `oidc-client.controller` broke its test expectation.
**Proposal**
- Cast `Object.entries` arg to `Record<string, unknown>` and add index
signature casts for `panvaFormatted`
- Import `glob` from `node:fs/promises` and mock as async iterable
- Replace `Symbol("sessionCookieName")` with a string literal
- Annotate `markdownGenerateResult` as `string[]`
- Use `as any` on ejs mock callback and generator mock where type
boundaries don't risk correctness
- Guard `getIdpDomains` with `idps ?? []` to preserve null-safety
- Update oidc-client controller spec to expect `undefined` over `null`
9067829 to
8904edd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps typescript from 5.9.3 to 6.0.3.
Release notes
Sourced from typescript's releases.
Commits
050880cBump version to 6.0.3 and LKGeeae9dd🤖 Pick PR #63401 (Also check package name validity in...) into release-6.0 (#...ad1c695🤖 Pick PR #63368 (Harden ATA package name filtering) into release-6.0 (#63372)0725fb4🤖 Pick PR #63310 (Mark class property initializers as...) into release-6.0 (#...607a22aBump version to 6.0.2 and LKG9e72ab7🤖 Pick PR #63239 (Fix missing lib files in reused pro...) into release-6.0 (#...35ff23d🤖 Pick PR #63163 (Port anyFunctionType subtype fix an...) into release-6.0 (#...e175b69Bump version to 6.0.1-rc and LKGaf4caacUpdate LKG8efd7e8Merge remote-tracking branch 'origin/main' into release-6.0